package io.github.sds100.keymapper.base.promode

import dagger.hilt.android.scopes.ViewModelScoped
import io.github.sds100.keymapper.base.utils.navigation.NavigationProvider
import io.github.sds100.keymapper.base.utils.ui.ResourceProvider
import javax.inject.Inject
import javax.inject.Named
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch

@ViewModelScoped
class ProModeSetupDelegateImpl @Inject constructor(
    @Named("viewmodel")
    viewModelScope: CoroutineScope,
    useCase: SystemBridgeSetupUseCase,
    resourceProvider: ResourceProvider,
    private val navigationProvider: NavigationProvider,
) : SystemBridgeSetupDelegateImpl(
    viewModelScope,
    useCase,
    resourceProvider,
) {
    override fun onFinishClick() {
        viewModelScope.launch {
            navigationProvider.popBackStack()
        }
    }
}
